package com.tommy.jiami;

import android.app.*;
import android.content.*;
import android.preference.PreferenceManager;

public class MyApplication extends Application
{
	private static Application mApplication;
	private static SharedPreferences mSharedPreferences;
	
	@Override
	public void onCreate()
	{
		super.onCreate();
		mApplication=this;
		mSharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);
	}

	
	public static Application getApplication(){
		return mApplication;
	}
	public static SharedPreferences getSharedPreferences(){
		return mSharedPreferences;
	}
}
